import { ajax } from 'utils'

export const amList = ajax.fetchJSONByPost('/common/amList')
export const amLogin = ajax.fetchJSONStringByPost('auth/check/admin/login')

export const homeQueryInfoaction = ajax.fetchJSONStringByGet('content/home/page/query')//查询首页信息
export const homeQuerybrokenLine = ajax.fetchJSONStringByGet('content/home/page/register/num/query')//查询首页折线图
export const materialqueryaction = ajax.fetchJSONStringByGet('content/recommand/content/query')//获取推荐信息
export const contentQueryaction = ajax.fetchJSONStringByGet('content/recommand/material/query')//获取素材信息
export const recommandAddaction = ajax.fetchJSONStringByPost('content/recommand/material/quote')//添加推荐内容
export const recommanddeleteaction = ajax.fetchJSONStringByPost('content/recommand/delete')//删除推荐内容
export const recommsortaction = ajax.fetchJSONStringByPost('content/recommand/sort')//排序推荐内容

export const authtype = ajax.fetchJSONStringByGet('system/auth/role/getAllList')//获取全部的角色列表

//下拉框基础数据获取
export const getbasetype = ajax.fetchJSONStringByGet('system/masterData/list')

export const getLeftmenuList = ajax.fetchJSONStringByGet('system/auth/menu/getUserMenuList')//左侧菜单页面

//下拉框获取区

export const  getarea= ajax.fetchJSONStringByGet('system/district/query')
//下拉框获取城市
export const getcity = ajax.fetchJSONStringByGet('system/city/query')
//下拉框获取省份
export const  getprovince= ajax.fetchJSONStringByGet('system/location/province/all/query')
//修改密码
export const editpwd = ajax.fetchJSONStringByPost('system/auth/user/update/pwd')

//省市区三级联动
export const getCommonRegionList = ajax.fetchJSONStringByGet('system/get/all/linkage/province/to/area')